package iosu.java.games.razer.server;

import iosu.java.games.razer.ClientStatus;
import iosu.java.games.razer.characters.Car;

import java.util.Date;

public class Client {
	// este es el id que el cliente ha enviado, en teoria es unico y no reutilizable
	private String id;
	// esta es la fecha/hora de conexion
	private Date start_time;
	// este es el id cliente interno
	private int clientid;
	// el estado registrado del cliente
	private ClientStatus status;
	// cada cliente puede estar jugando una unica partida
	private Game game;
	
	private ServerCar car;
	private int numcar;
	
	private boolean finished = false;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getStart_time() {
		return start_time;
	}
	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}
	@Override
	public String toString() {
		return "Client [id=" + id + ", start_time=" + start_time
				+ ", clientid=" + clientid + ", status=" + status + ", car=" + car + ", numcar=" + numcar + "]";
	}
	public int getClientid() {
		return clientid;
	}
	public void setClientid(int clientid) {
		this.clientid = clientid;
	}
	public ClientStatus getStatus() {
		return status;
	}
	public void setStatus(ClientStatus status) {
		this.status = status;
	}
	public Game getGame() {
		return game;
	}
	public void setGame(Game game) {
		this.game = game;
	}
	public ServerCar getCar() {
		return car;
	}
	public void setCar(ServerCar car) {
		this.car = car;
	}
	public int getNumcar() {
		return numcar;
	}
	public void setNumcar(int numcar) {
		this.numcar = numcar;
	}
	public void setFinished() {
		this.finished = true;
	}
	
	public boolean getFinished(){
		return this.finished;
	}
	

	
}
